package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/2/23 13:54
 * Dest  消息
 */

public class MessageBean implements Parcelable{


    /**
     * id : 10
     * token : null
     * pushSign : null
     * userId : 30
     * purchaseId : 32
     * type : 2
     * newsTime : 2018-02-13
     * content : 夏强大老虎
     * state : 1
     * summary
     */


    private int id;
    private int userId;
    private int purchaseId;
    private int type;
    private String newsTime;
    private String content;
    private int state;
private String title;
private String summary;

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }



    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(int purchaseId) {
        this.purchaseId = purchaseId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getNewsTime() {
        return newsTime;
    }

    public void setNewsTime(String newsTime) {
        this.newsTime = newsTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public MessageBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.userId);
        dest.writeInt(this.purchaseId);
        dest.writeInt(this.type);
        dest.writeString(this.newsTime);
        dest.writeString(this.content);
        dest.writeInt(this.state);
        dest.writeString(this.title);
        dest.writeString(this.summary);
    }

    protected MessageBean(Parcel in) {
        this.id = in.readInt();
        this.userId = in.readInt();
        this.purchaseId = in.readInt();
        this.type = in.readInt();
        this.newsTime = in.readString();
        this.content = in.readString();
        this.state = in.readInt();
        this.title = in.readString();
        this.summary = in.readString();
    }

    public static final Creator<MessageBean> CREATOR = new Creator<MessageBean>() {
        @Override
        public MessageBean createFromParcel(Parcel source) {
            return new MessageBean(source);
        }

        @Override
        public MessageBean[] newArray(int size) {
            return new MessageBean[size];
        }
    };
}
